package org.dreamwork.tools.code.analyzer.jfx;

import org.dreamwork.tools.code.analyzer.jfx.js.JSField;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class TestObject {
    @JSField
    private String name;

    @JSField ("device_address")
    private String address;

    @JSField
    private Date createTime;

    @JSField (complexType = String.class)
    private List<String> worlds;

    @JSField (complexType = {String.class, String.class})
    private Map<String, String> dict;

    private boolean active;

    public boolean isActive () {
        return active;
    }

    @JSField
    public void setActive (boolean active) {
        this.active = active;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public String getAddress () {
        return address;
    }

    public void setAddress (String address) {
        this.address = address;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public List<String> getWorlds () {
        return worlds;
    }

    public void setWorlds (List<String> worlds) {
        this.worlds = worlds;
    }

    public Map<String, String> getDict () {
        return dict;
    }

    public void setDict (Map<String, String> dict) {
        this.dict = dict;
    }
}